﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace handvn.Models
{
    public class Product
    {
        public string ProductID { get; set; }
        public string TenSanPham { get; set; }
        public float GiaSanPham { get; set; }
        public float GiaThiTruong { get; set; }
        public string HinhAnh { get; set; }
        public string GioiThieu { get; set; }
        public int SoLuong { get; set; }
        public int SoLuotXem { get; set; }

        [Required(ErrorMessage = "dd/mm/yyyy")]
        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:dd/mm/yyyy}")]
        public DateTime? NgayNhapSanPham { get; set; }

        public int DetailCategoriesID { get; set; }
        public string UserID { get; set; } 
        public bool TinhTrang { get; set; }

        public virtual User User { get; set; }
        public virtual DetailCategories DetailCategories { get; set; }

        public virtual ICollection<Images> Images { get; set; }
        public virtual ICollection<Comment> Comment { get; set; }
    }
}